package com.cn.wanxi.controller;

import com.cn.wanxi.entity.ProducctEntity;
import com.cn.wanxi.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/back/product")
public class ProductController {

    @Autowired
    private ProductService productService;

    @RequestMapping("/add")
    public String add(ProducctEntity producctEntity) {
        return productService.add(producctEntity);
    }
}
